
<div class="wlb">
    <link rel="stylesheet" href="/css/jx/wlb.css">
    <li><a href="#" onclick="openWindow('/jx/jxAssess/wlb/pmc.html')">PMC</a></li>
    <li><a href="#" onclick="openWindow('/jx/jxAssess/wlb/cpk.html')">成品科</a></li>
    <li><a href="#" onclick="openWindow('/jx/jxAssess/wlb/pjz.html')">配件组</a></li>
    <li><a href="#" onclick="openWindow('/jx/jxAssess/wlb/ycl.html')">原材料</a></li>
    <script>
        function  openWindow(){
            //获取分辨率
            var width = window.screen.width;
            var height = window.screen.height;
            var wa = width*0.9;         //取0.6宽度
            var wb= width*0.5-wa*0.5     //居中
            var window1 = window.open(arguments[0],"wlb_pmc","width="+wa+" height="+(height-60)+" left="+wb+" location=no");
            // 需要延迟才有内容
            window.setTimeout(function () {
                try {
                   //判断内容是否为空，弹出登录已过期就是空，看看后续还有啥办法
                if(window1.document.body.innerHTML==""){ //会报错
                    window1.close()
                }
                }catch (e) {
                    window1.close()
                }
            },600)
        }
    </script>
</div>